import request from '@/utils/subOrderForm'

export function payshipments (data) { //支付完成-发货接口
    return request({
      url: '/mall-oms/mall/order/shipped',
      method :'put',
      data
    })
}
export function audit (data) { //售后申请 审核
    return request({
      url: '/mall-oms/after/apply/audit',
      method :'put',
      data
    })
}
export function verifyconfirm (data) { //用户退货 验证货物
    return request({
      url: '/mall-oms/after/apply/verification',
      method :'put',
      data
    })
}
export function refundconfirm (data) { //售后申请----发起退款
    return request({
      url: '/mall-oms/after/apply/refund',
      method :'put',
      data
    })
}
export function addressDetails (receiveAddressId) { //查询地址详情
    return request({
      url: '/ucenter/user/receive/address/' + receiveAddressId,
      method :'get',
    })
}
export function getLogisticsInfo (no) { //获取物流单号对应的物流公司
  return request({
    url: '/logistics/analyze',
    method: 'get',
    params: {no}
  })
}
export function getAddress () { //查询仓库配送地址(后台列表使用)
  return request({
    url: '/wms-center/repertory/address/search',
    method: 'get',
  })
}
export function applyConfirm (data) { //售后申请验货后确认接口
  return request({
    url: '/mall-oms/after/apply/confirm',
    method: 'put',
    data
  })
}
export function getdetail (afterApplyId) { //获取 售后订单详情
  return request({
    url: '/mall-oms/after/apply/detail',
    method: 'get',
      params: {afterApplyId}
  })
}
export function indentDetails (orderId) { //获取 订单详情
    return request({
      url: '/mall-oms/mall/order/' + orderId,
      method :'get',
    })
}
